package ThreadPoolCheck.notify_wait.Cond2;

import ThreadPoolCheck.notify_wait.Cond1.UseSynchronized;

/**
 * Created by wangyg6 on 2017/11/9.
 */
public class TestDemo {
	public static void main(String[] args) {
		UseLock ul = new UseLock();
		new Thread(() -> {
			for (int i = 1; i <= 5; i++) {
				ul.sub(i);
			}
		}).start();
		for (int i = 1; i <= 5; i++) {
			ul.main(i);
		}
	}
}
